function compare(num, dom) {
	var floor = Math.floor(num),
		_num = parseInt(num);
	if(num != floor) {
		switch(floor) {
			case 0:
				$('#' + dom + ' i:first-child').attr('class', 'iconfont icon-half');
				break;
			case 1:
				$('#' + dom + ' i:first-child').attr('class', 'iconfont icon-full');
				$('#' + dom + ' i:nth-child(2)').attr('class', 'iconfont icon-half');
				break;
			case 2:
				$('#' + dom + ' i:nth-child(-n+2)').attr('class', 'iconfont icon-full');
				$('#' + dom + ' i:nth-child(3)').attr('class', 'iconfont icon-half');
				break;
			case 3:
				$('#' + dom + ' i:nth-child(-n+3)').attr('class', 'iconfont icon-full');
				$('#' + dom + ' i:nth-child(4)').attr('class', 'iconfont icon-half');
				break;
			case 4:
				$('#' + dom + ' i:nth-child(-n+4)').attr('class', 'iconfont icon-full');
				$('#' + dom + ' i:last-child').attr('class', 'iconfont icon-half')
				break;
		}
	} else {
		switch(_num) {
			case 1:
				$('#' + dom + ' i:first-child').attr('class', 'iconfont icon-full')
				break;
			case 2:
				$('#' + dom + ' i:nth-child(-n+2)').attr('class', 'iconfont icon-full')
				break;
			case 3:
				$('#' + dom + ' i:nth-child(-n+3)').attr('class', 'iconfont icon-full')
				break;
			case 4:
				$('#' + dom + ' i:nth-child(-n+4)').attr('class', 'iconfont icon-full')
				break;
			default:
				$('#' + dom + ' i').attr('class', 'iconfont icon-full')
				break;
		}
	}
}